#ifndef JZ_GPIO_H__
#define JZ_GPIO_H__

#define JZ_IONUM_CVT(grp, index) (grp * 32 + index)

#define JZ_GPIO_A(index) JZ_IONUM_CVT(0, index)
#define JZ_GPIO_B(index) JZ_IONUM_CVT(1, index)
#define JZ_GPIO_C(index) JZ_IONUM_CVT(2, index)
#define JZ_GPIO_D(index) JZ_IONUM_CVT(3, index)
#define JZ_GPIO_E(index) JZ_IONUM_CVT(4, index)
#define JZ_GPIO_F(index) JZ_IONUM_CVT(5, index)

#endif
